package org.soretro.portfolio.view.background
{
	import org.robotlegs.mvcs.Mediator;
	
	public class CopyrightStripMediator extends Mediator
	{
		[Inject]
//		public var model:MainNavigationModel;
		
		[Inject]
		public var view:CopyrightStripView;
		
		override public function onRegister():void
		{
			changeCopy();
		}
		
		private function changeCopy ():void {
//			TweenLite.to( this, 2, { onUpdate:updateCopy } );
			var date:Date = new Date();
			var year:String = date.fullYear.toString();
			view.copyrightLabel.text = "© 2011-"+ year +" SoRetro Software Ltd.";
		}
		
		private function updateCopy():void
		{
		}
	}
}